<%@ page language="java" isErrorPage="true" %>
<%@ page import="java.io.CharArrayWriter, java.io.PrintWriter" %>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<tr><td>&nbsp;</td></tr>
<font face="Arial" size="2">
    <table bgcolor="#E8F2FF" border="0" align="center" cellspacing="2" cellpadding="2" width="40%">
        <tr><td>&nbsp;</td></tr>
        <tr align="center">
            <th colspan="2" width="60%">Erro tentando logar! <br><br></th>
        </tr>
        <tr><td align="center">Verifique seus dados e tente novamente.</td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
            <td>
                <%
                if (exception != null) {
                    out.println(exception.getMessage());
                    CharArrayWriter charArrayWriter = new CharArrayWriter();
                    PrintWriter printWriter = new PrintWriter(charArrayWriter, true);
                    exception.printStackTrace(printWriter);
                    out.println(charArrayWriter.toString());
                }
                %>
            </td>
        </tr>
        <tr><td align="center"><input type="button" value="Voltar" onClick="history.back()"></td></tr>
        <tr><td>&nbsp;</td></tr>
    </table>
    <tr><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td></tr>
</font>